var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(2184007, "oid=247936", 912, -415, 42, 862, 962, 1, false, false);
            cm.playerMessage(-1, "寻找通道.");
            cm.playerMessage(-1, "把盗墓者全部消灭掉.");
            cm.updateInfoQuest(31057, "kill=0");
            cm.updateInfoQuest(31057, "door=0;kill=0");
            cm.spawnMobLimit(8870202, 1, 900, 75, 1);
            cm.spawnMobLimit(8870202, 1, 1361, -465, 1);
            cm.spawnMobLimit(8870202, 1, 400, -465, 1);
            cm.spawnMobLimit(8870202, 1, -210, -225, 1);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};